import { TabWidget } from "std-widgets.slint";
import { FourPanel } from "./four.slint";
import { CalenderPanel } from "calender.slint";
export  component App inherits Rectangle {
    callback clicked(string);
    callback preMonth();
    callback nextMonth();
    in-out property <[[{day: string, color: string}]]> day_items: [];
    TabWidget {
        Tab {
            title: "日历";
            cal := CalenderPanel {
                day_items: root.day_items;
                clicked => {
                    root.clicked("ddd");
                }
                preMonth => {
                    root.preMonth();
                }
                nextMonth => {
                    root.nextMonth();
                }
            }
        }

        Tab {
            title: "四象限";
            FourPanel { }
        }

        Tab {
            title: "收件箱";
        }
    }
}
